
<?php foreach ($totles as $key=>$ts):?>

           <tr>
                  <td><?php echo $key+1+$current_page*$per_page ?></td>
                  <td><?php echo $ts['purchase_id'] ?></td>
                  <td><?php echo $ts['sum(b.quantity)'] ?></td>
                  <td><?php echo round($ts['sum(b.no_tax_money)'],2) ?></td>
                  <td><?php echo round($ts['sum(b.tax_money)'],2) ?></td>
                  <td><?php echo round($ts['sum(b.money)'],2) ?></td>
                  <td><?php echo round($ts['sum(b.transportation_expense)'],2) ?></td>
                  <td><?php echo round($ts['sum(b.no_tax_money)']+$ts['sum(b.transportation_expense)'],2) ?></td>
           </tr>

<?php endforeach;?>


